/*************************
 * 此js为Teachermanagement.vue提供后端数据，以及把Teachermanagement.vue中的数据发送到后端
 */

import request from '../http/index.js'

//定义函数

//传递输入表单数据
export const handleTeacherSubmit = (TeacherFormData) => {
    
    return request({
        url: '/employee/save',
        method: 'post',
        data: TeacherFormData
    })
}

export const handleTeacherDelete = (TeacherFormData) => {
    
    return request({
        url: '/employee/delete',
        method: 'post',
        data: TeacherFormData
    })
}
export const handleTeacherEdit = (TeacherFormData) => {
    
    return request({
        url: '/employee/update',
        method: 'post',
        data: TeacherFormData
    })
}


export const handleTeacherData = () => {
    return request({
        url: '/employee/list',
        method: 'get'
    })
}